package com.avocado.manager;

import com.avocado.dispatcher.ActorDispatcher;
import com.avocado.dispatcher.impl.ActorRandomDispatcher;

import java.util.List;
import java.util.function.Supplier;

/**
 * @author avocado
 * @date 2023/5/28 23:33
 */
public class ActorManager {

    public ThreadLocal<Integer> threadIndex = ThreadLocal.withInitial(new Supplier<Integer>() {
        @Override
        public Integer get() {

            return null;
        }
    });

    private static ActorDispatcher actorDispatcher;
    private static List<Thread> workerThreads;


    public static void init() {
        actorDispatcher = new ActorRandomDispatcher();




    }

}
